Integrand size = 34, antiderivative size = 229 \[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {\sqrt {2} (a+b) C \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {5}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) (a+b \sec (c+d x))^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}}+\frac {\sqrt {2} (b B-a C) \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {2}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) (a+b \sec (c+d x))^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}} \]
[Out]
Time = 0.33 (sec) , antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.147, Rules used = {4147, 12, 3919, 144, 143} \[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {\sqrt {2} (b B-a C) \tan (c+d x) (a+b \sec (c+d x))^{2/3} \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {2}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right )}{b d \sqrt {\sec (c+d x)+1} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}}+\frac {\sqrt {2} C (a+b) \tan (c+d x) (a+b \sec (c+d x))^{2/3} \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {5}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right )}{b d \sqrt {\sec (c+d x)+1} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}} \]
[In]
[Out]
Rule 12
Rule 143
Rule 144
Rule 3919
Rule 4147
Rubi steps \begin{align*} \text {integral}& = \frac {\int (b B-a C) \sec (c+d x) (a+b \sec (c+d x))^{2/3} \, dx}{b}+\frac {C \int \sec (c+d x) (a+b \sec (c+d x))^{5/3} \, dx}{b} \\ & = \frac {(b B-a C) \int \sec (c+d x) (a+b \sec (c+d x))^{2/3} \, dx}{b}-\frac {(C \tan (c+d x)) \text {Subst}\left (\int \frac {(a+b x)^{5/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \\ & = -\frac {((b B-a C) \tan (c+d x)) \text {Subst}\left (\int \frac {(a+b x)^{2/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}+\frac {\left ((-a-b) C (a+b \sec (c+d x))^{2/3} \tan (c+d x)\right ) \text {Subst}\left (\int \frac {\left (-\frac {a}{-a-b}-\frac {b x}{-a-b}\right )^{5/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)} \left (-\frac {a+b \sec (c+d x)}{-a-b}\right )^{2/3}} \\ & = \frac {\sqrt {2} (a+b) C \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {5}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) (a+b \sec (c+d x))^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}}-\frac {\left ((b B-a C) (a+b \sec (c+d x))^{2/3} \tan (c+d x)\right ) \text {Subst}\left (\int \frac {\left (-\frac {a}{-a-b}-\frac {b x}{-a-b}\right )^{2/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)} \left (-\frac {a+b \sec (c+d x)}{-a-b}\right )^{2/3}} \\ & = \frac {\sqrt {2} (a+b) C \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {5}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) (a+b \sec (c+d x))^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}}+\frac {\sqrt {2} (b B-a C) \operatorname {AppellF1}\left (\frac {1}{2},\frac {1}{2},-\frac {2}{3},\frac {3}{2},\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) (a+b \sec (c+d x))^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(21744\) vs. \(2(229)=458\).
Time = 30.15 (sec) , antiderivative size = 21744, normalized size of antiderivative = 94.95 \[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\text {Result too large to show} \]
[In]
[Out]
\[\int \left (a +b \sec \left (d x +c \right )\right )^{\frac {2}{3}} \left (B \sec \left (d x +c \right )+C \sec \left (d x +c \right )^{2}\right )d x\]
[In]
[Out]
\[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {2}{3}} \,d x } \]
[In]
[Out]
\[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int \left (B + C \sec {\left (c + d x \right )}\right ) \left (a + b \sec {\left (c + d x \right )}\right )^{\frac {2}{3}} \sec {\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {2}{3}} \,d x } \]
[In]
[Out]
\[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {2}{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int (a+b \sec (c+d x))^{2/3} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int \left (\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{2/3} \,d x \]
[In]
[Out]